From 4527955c8ab4bbef7472ce0e257b0111fdf8302d Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Fri, 14 Jun 2019 01:09:20 +0200
Subject: [PATCH] Fixed memory allocation errors in incognito mode.

Fix crash with message "free(): invalid next size (fast)" when a new
instance was spawned.
---
 src/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main.c b/src/main.c
index 28f17e6..6eb69dd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1027,6 +1027,7 @@ static void spawn_new_instance(const char *uri)
 #ifndef FEATURE_NO_XEMBED
         + (vb.embed ? 2 : 0)
 #endif
+        + (vb.incognito ? 1 : 0)
         + (vb.profile ? 2 : 0)
         + (vb.no_maximize ? 1 : 0),
         sizeof(char *)
-- 
2.20.1